Class NtpServerProcessImpl

All Implemented Interfaces:
IPCObject, NtpServerProcess, Process

public class NtpServerProcessImpl extends ProcessImpl implements NtpServerProcess
Information provided by the PKI file:

    \class NtpServerProcess
    
    \brief NtpServerProcess handles and manipulates the NTP server process.
    
    \example network().getDevice("Server0").getProcess("NtpServer")
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • setEnabled

      public void setEnabled(boolean enable)
      Information provided by the PKI file:
      
          \brief Enables or disables the NTP server.
          
          \param enable, true to enable the NTP server, false to disable it.
          
              
      Specified by:
      setEnabled in interface NtpServerProcess
      Parameters:
      enable - Takes in a parameter of enable
    • isEnabled

      public boolean isEnabled()
      Information provided by the PKI file:
      
          \brief Returns true if the NTP server is enabled, otherwise false.
          
          \return bool, true if the NTP server is enabled, otherwise false.
          
              
      Specified by:
      isEnabled in interface NtpServerProcess
      Returns:
      boolean Returns a boolean
    • setKeyID

      public void setKeyID(long key)
      Information provided by the PKI file:
      
          \brief Sets the NTP authentication key to the specified value.
          
          \param key, the NTP authentication key value.
          
              
      Specified by:
      setKeyID in interface NtpServerProcess
      Parameters:
      key - Takes in a parameter of key
    • getKeyId

      public long getKeyId()
      Information provided by the PKI file:
      
          \brief Returns the NTP authentication key.
          
          \return long, the value of the NTP authentication key.
          
              
      Specified by:
      getKeyId in interface NtpServerProcess
      Returns:
      long Returns a long
    • getServerMd5Str

      public String getServerMd5Str()
      Information provided by the PKI file:
      
          \brief Returns the NTP authentication password.
          
          \return string, the NTP authentication password.
          
              
      Specified by:
      getServerMd5Str in interface NtpServerProcess
      Returns:
      String Returns a String
    • setServerMd5Str

      public void setServerMd5Str(String md5)
      Information provided by the PKI file:
      
          \brief Sets the NTP authentication password.
          
          \param md5, the NTP authentication password.
          
              
      Specified by:
      setServerMd5Str in interface NtpServerProcess
      Parameters:
      md5 - Takes in a parameter of md5
    • getNtpServerAuthentication

      public boolean getNtpServerAuthentication()
      Information provided by the PKI file:
      
          \brief Get if the server is set to authenticate.
          
          \return bool, true if it is set to authenticate, false if not.
          
              
      Specified by:
      getNtpServerAuthentication in interface NtpServerProcess
      Returns:
      boolean Returns a boolean
    • setNtpServerAuthentication

      public void setNtpServerAuthentication(boolean yes)
      Information provided by the PKI file:
      
          \brief Set if the server is supposed to authenticate.
          
          \param yes, true if it should be set to authenticate, false if not.
          
              
      Specified by:
      setNtpServerAuthentication in interface NtpServerProcess
      Parameters:
      yes - Takes in a parameter of yes
    • setRefClockTime

      public void setRefClockTime(String time)
      Information provided by the PKI file:
      
          \brief Set the ref clock time.
          
          \param time, time to set the clock to.  Example time: "Tue May 24 2016 10:21:27.929 UTC".
          
              
      Specified by:
      setRefClockTime in interface NtpServerProcess
      Parameters:
      time - Takes in a parameter of time
    • getRefClockTime

      public String getRefClockTime()
      Information provided by the PKI file:
      
          \brief Gets the ref clock time.
          
          \return string, ref clock time.   Example time: "Tue May 24 2016 10:21:27.929 UTC".
          
              
      Specified by:
      getRefClockTime in interface NtpServerProcess
      Returns:
      String Returns a String